<!--{eval
	unset($con);
	$gwhere = 'b.group != 99';
	if($this->_SS['group']!=1 && $this->_SS['group']>0){
		$gwhere = 'b.group = '.$this->_SS['group'];
	}
	$con->select = "a.uid,a.username,b.group,c.title";
	$con->join = "LEFT JOIN `".Acan_table_user_group."` b ON a.uid=b.uid LEFT JOIN `".Acan_table_group."` c ON b.group=c.gid and b.appid=c.appid ";
	$con->where = "b.appid=".Acan_app_id." and ".$gwhere;
	$con->order = "b.group ASC";
	$users = Afun_db()->model(Acan_table_user)->findAll($con);
	foreach ($users as $k => $v) {
		$user[$v['group']]['title'] = $v['title'];
		$user[$v['group']]['user'][$v['uid']] = $v['username'];
	}
	$json_user = Ajson_encode($user);
}-->
<div class="_user_list">
	<!--{loop $user $key $val}-->
		<h2>$val[title]</h2>
		<!--{loop $val[user] $k $v}-->
			<p><a href="$this->Aactr-$k">$v</a><p>
		<!--{/loop}-->
	<!--{/loop}-->
</div>
<script>var users = $json_user;</script>